package com.example.park.park

import android.graphics.Bitmap
import android.graphics.BitmapFactory
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.lib_base.mvvm.BaseViewActivity
import com.example.park.R
import com.example.park.databinding.ActivityParkVrBinding
import com.google.vr.sdk.widgets.pano.VrPanoramaView
import dagger.hilt.android.AndroidEntryPoint

@Route(path = "/park/ParkVrActivity")
@AndroidEntryPoint
class ParkVrActivity : BaseViewActivity<ActivityParkVrBinding>() {
    override fun initView() {
        val options = VrPanoramaView.Options()
        options.inputType=VrPanoramaView.Options.TYPE_MONO
        binding.vr.loadImageFromBitmap(Bitmap.createBitmap(BitmapFactory.decodeResource(resources,
            R.drawable.img_1
        )),options)
    }

    override fun initData() {

    }

}